package com.bitcat.firstapp.ui.fragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.bitcat.firstapp.databinding.FragmentNewsListBinding
import es.dmoral.toasty.Toasty

class NewsFragment:Fragment() {

    private lateinit var binding:FragmentNewsListBinding


    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        Toasty.info(requireContext(),"资讯布局被创建").show()
        binding = FragmentNewsListBinding.inflate(inflater,container,false)
        return binding.root
    }


    override fun onDestroyView() {
        super.onDestroyView()
        Toasty.info(requireContext(),"资讯布局被销毁").show()
    }
}